package com.jinbiao.quasar.model;

import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;

import java.io.Serializable;
import java.sql.Types;

@Data
@Entity(tableName = "sys_user_role")
public class SysUserRole implements Serializable {
    @Column(name = "sys_role_role_code", type = Types.VARCHAR)
    private String roleCode;
    @Column(name = "sys_user_username", type = Types.VARCHAR)
    private String username;

    public SysUserRole(String roleCode) {
        this.roleCode = roleCode;
    }

    public SysUserRole(String roleCode, String username) {
        this.roleCode = roleCode;
        this.username = username;
    }

    public SysUserRole() {
    }
}
